#pragma once

#include "ConsolePrerequisites.h"
#include "CCommand.h"

class CConsoleVariable : public CCommand
{
public:
	CConsoleVariable( const std::string & strName, IValue & value, const std::string & strHelp );
	virtual ~CConsoleVariable();
	virtual csString				GetCommandTypeName()				{ return "Variable"; }
	virtual ECommandType			GetCommandType()					{ return eCT_VARIABLE; }

protected:
	virtual bool					Execute( IConsoleScreen *pScreen, const CArgumentList & args );


private:
	IValue &					m_Value;

};

